package com.like.entity;

import com.google.gson.annotations.SerializedName;
import com.like.aes.AESUtils;
import com.like.aes.AesException;
import com.like.likeutils.network.GsonUtil;
import com.like.utils.Constants;

public class ImageReq extends RequestBase {

    @SerializedName("ResID")
    public String resId;

    public ImageReq() {
    }

    public ImageReq(String resId) {
        this.resId = resId;
    }

    @Override
    public String toString() {
        String json =  GsonUtil.gson.toJson(this);
        try {
            return AESUtils.encrypt(json, Constants.AES_KEY, Constants.PROJECT_ID);
        } catch (AesException e) {
            return "";
        }
    }
}
